Eclipse Platform
Pre-release 3.0

Uses of Class
org.eclipse.jface.text.BadLocationException

Packages that use BadLocationException
org.eclipse.jface.text Provides a framework for creating, manipulating, displaying and editing text documents. 
org.eclipse.jface.text.rules Provides a framework for rule based text scanning and uses the framework to provide rule-driven default implementations of IPresentationDamager, IPresentationRepairer and IDocumentPartitioner
org.eclipse.jface.text.source Provides a framework for connecting document regions with annotations and for displaying those annotations in combination with an ITextViewer
org.eclipse.text.edits   
 

Uses of BadLocationException in org.eclipse.jface.text
 

Methods in org.eclipse.jface.text that throw BadLocationException
 int ProjectionDocument.toParentDocumentOffset(int offset)
          Returns the offset in the parent document that corresponds to the given offset in this projection document.
 IRegion ProjectionDocument.computeParentDocumentRegion(int offset, int length)
          Computes and returns the region of the parent document that corresponds to the given region of the projection document.
 void ProjectionDocument.addFragment(int offsetInParent, int lengthInParent)
          Add a new fragment of the parent document to this projection document.
 void ProjectionDocument.removeFragment(Position parentPosition)
          Removes the fragment that corresponds to the given parent document range.
protected  Fragment ProjectionDocument.getFragmentOfOffset(int offset)
          Returns the fragment that contains the given offset.
 void ProjectionDocument.replace(int offset, int length, String text)
           
 int CoordinatesTranslator.toOriginOffset(int imageOffset)
           
 IRegion CoordinatesTranslator.toOriginRegion(IRegion imageRegion)
           
 IRegion CoordinatesTranslator.toOriginLines(int imageLine)
           
 int CoordinatesTranslator.toOriginLine(int imageLine)
           
 int CoordinatesTranslator.toImageOffset(int originOffset)
           
 IRegion CoordinatesTranslator.toImageRegion(IRegion originRegion)
           
 int CoordinatesTranslator.toImageLine(int originLine)
           
 int CoordinatesTranslator.toClosestImageLine(int originLine)
           
static DocumentEvent TextUtilities.mergeUnprocessedDocumentEvents(IDocument unprocessedDocument, List documentEvents)
          Returns a document event which is an accumulation of a list of document events, null if the list of documentEvents is empty.
static DocumentEvent TextUtilities.mergeProcessedDocumentEvents(List documentEvents)
          Returns a document event which is an accumulation of a list of document events, null if the list of document events is empty.
static String TextUtilities.getContentType(IDocument document, String partitioning, int offset)
          Returns the content type at the given offset of the given document.
static ITypedRegion TextUtilities.getPartition(IDocument document, String partitioning, int offset)
          Returns the partition of the given offset of the given document.
static ITypedRegion[] TextUtilities.computePartitioning(IDocument document, String partitioning, int offset, int length)
          Computes and returns the partitioning for the given region of the given document for the given partitioning name.
 int ParentChildMapping.toOriginOffset(int imageOffset)
           
 IRegion ParentChildMapping.toOriginRegion(IRegion imageRegion)
           
 IRegion ParentChildMapping.toOriginLines(int imageLine)
           
 int ParentChildMapping.toOriginLine(int imageLine)
           
 int ParentChildMapping.toImageOffset(int originOffset)
           
 IRegion ParentChildMapping.toImageRegion(IRegion originRegion)
           
 int ParentChildMapping.toImageLine(int originLine)
           
 int ParentChildMapping.toClosestImageLine(int originLine)
           
 String ILineTracker.getLineDelimiter(int line)
          Returns the line delimiter of the specified line.
 int ILineTracker.getNumberOfLines(int offset, int length)
          Returns the number of lines which are occupied by a given text range.
 int ILineTracker.getLineOffset(int line)
          Returns the position of the first character of the specified line.
 int ILineTracker.getLineLength(int line)
          Returns length of the specified line including the line's delimiter.
 int ILineTracker.getLineNumberOfOffset(int offset)
          Returns the line number the character at the given offset belongs to.
 IRegion ILineTracker.getLineInformationOfOffset(int offset)
          Returns a line description of the line at the given offset.
 IRegion ILineTracker.getLineInformation(int line)
          Returns a line description of the given line.
 void ILineTracker.replace(int offset, int length, String text)
          Informs the line tracker about the specified change in the tracked text.
 int IDocumentInformationMapping.toOriginOffset(int imageOffset)
          Returns the offset in the original document that corresponds to the given offset in the image document or -1 if there is no such offset
 IRegion IDocumentInformationMapping.toOriginRegion(IRegion imageRegion)
          Returns the minimal region of the original document that completely comprises the given region of the image document or null if there is no such region.
 IRegion IDocumentInformationMapping.toOriginLines(int imageLine)
          Returns the range of lines of the original document that corresponds to the given line of the image document or null if there are no such lines.
 int IDocumentInformationMapping.toOriginLine(int imageLine)
          Returns the line of the original document that corresponds to the given line of the image document or -1 if there is no such line.
 int IDocumentInformationMapping.toImageOffset(int originOffset)
          Returns the offset in the image document that corresponds to the given offset in the original document or -1 if there is no such offset
 IRegion IDocumentInformationMapping.toImageRegion(IRegion originRegion)
          Returns the minimal region of the image document that completely comprises the given region of the original document or null if there is no such region.
 int IDocumentInformationMapping.toImageLine(int originLine)
          Returns the line of the image document that corresponds to the given line of the original document or -1 if there is no such line.
 int IDocumentInformationMapping.toClosestImageLine(int originLine)
          Returns the line of the image document whose corresponding line in the original document is closest to the given line in the original document.
 String IDocumentExtension3.getContentType(String partitioning, int offset)
          Returns the type of the document partition containing the given offset for the given partitioning.
 ITypedRegion IDocumentExtension3.getPartition(String partitioning, int offset)
          Returns the document partition of the given partitioning in which the given offset is located.
 ITypedRegion[] IDocumentExtension3.computePartitioning(String partitioning, int offset, int length)
          Computes the partitioning of the given document range based on the given partitioning.
 char IDocument.getChar(int offset)
          Returns the character at the given document offset in this document.
 String IDocument.get(int offset, int length)
          Returns this document's text for the specified range.
 void IDocument.replace(int offset, int length, String text)
          Subsitutes the given text for the specified document range.
 void IDocument.addPosition(Position position)
          Adds the position to the document's default position category.
 void IDocument.addPosition(String category, Position position)
          Adds the position to the specified position category of the document.
 int IDocument.computeIndexInCategory(String category, int offset)
          Computes the index at which a Position with the specified offset would be inserted into the given category.
 String IDocument.getContentType(int offset)
          Returns the type of the document partition containing the given offset.
 ITypedRegion IDocument.getPartition(int offset)
          Returns the document partition in which the position is located.
 ITypedRegion[] IDocument.computePartitioning(int offset, int length)
          Computes the partitioning of the given document range using the document's partitioner.
 int IDocument.getLineLength(int line)
          Returns the length of the given line including the line's delimiter.
 int IDocument.getLineOfOffset(int offset)
          Returns the number of the line at which the character of the specified position is located.
 int IDocument.getLineOffset(int line)
          Determines the offset of the first character of the given line.
 IRegion IDocument.getLineInformation(int line)
          Returns a description of the specified line.
 IRegion IDocument.getLineInformationOfOffset(int offset)
          Returns a description of the line at the given offset.
 int IDocument.getNumberOfLines(int offset, int length)
          Returns the number of lines which are occupied by a given text range.
 String IDocument.getLineDelimiter(int line)
          Returns the line delimiter of that line or null if the line is not closed with a line delimiter.
 int IDocument.search(int startOffset, String findString, boolean forwardSearch, boolean caseSensitive, boolean wholeWord)
          Deprecated. as of 3.0 search is provided by FindReplaceDocumentAdapter
 IRegion FindReplaceDocumentAdapter.search(int startOffset, String findString, boolean forwardSearch, boolean caseSensitive, boolean wholeWord, boolean regExSearch)
          Returns the region of a given search string in the document based on a set of search criteria.
 IRegion FindReplaceDocumentAdapter.findReplace(FindReplaceOperationCode operationCode, int startOffset, String findString, String replaceText, boolean forwardSearch, boolean caseSensitive, boolean wholeWord, boolean regExSearch)
          Stateful findReplace executes a FIND, REPLACE, REPLACE_FIND or FIND_FIRST operation.
 IRegion FindReplaceDocumentAdapter.replace(String text, boolean regExReplace)
          Subsitutes the previous match with the given text.
 void ChildDocument.setParentDocumentRange(int offset, int length)
          Sets the child document's parent document range.
 void ChildDocument.replace(int offset, int length, String text)
           
 int AbstractLineTracker.getLineLength(int line)
           
 int AbstractLineTracker.getLineNumberOfOffset(int position)
           
 IRegion AbstractLineTracker.getLineInformationOfOffset(int position)
           
 IRegion AbstractLineTracker.getLineInformation(int line)
           
 int AbstractLineTracker.getLineOffset(int line)
           
 int AbstractLineTracker.getNumberOfLines(int position, int length)
           
 void AbstractLineTracker.replace(int position, int length, String text)
           
 String AbstractLineTracker.getLineDelimiter(int line)
           
 void AbstractDocument.addPosition(String category, Position position)
           
 void AbstractDocument.addPosition(Position position)
           
 int AbstractDocument.computeIndexInCategory(String category, int offset)
           
 char AbstractDocument.getChar(int pos)
           
 String AbstractDocument.getContentType(int offset)
           
 String AbstractDocument.getLineDelimiter(int line)
           
 int AbstractDocument.getLineLength(int line)
           
 int AbstractDocument.getLineOfOffset(int pos)
           
 int AbstractDocument.getLineOffset(int line)
           
 IRegion AbstractDocument.getLineInformation(int line)
           
 IRegion AbstractDocument.getLineInformationOfOffset(int offset)
           
 int AbstractDocument.getNumberOfLines(int offset, int length)
           
 ITypedRegion AbstractDocument.getPartition(int offset)
           
 ITypedRegion[] AbstractDocument.computePartitioning(int offset, int length)
           
 String AbstractDocument.get(int pos, int length)
           
 void AbstractDocument.replace(int pos, int length, String text)
           
 int AbstractDocument.search(int startPosition, String findString, boolean forwardSearch, boolean caseSensitive, boolean wholeWord)
           
 ITypedRegion[] AbstractDocument.computePartitioning(String partitioning, int offset, int length)
           
 String AbstractDocument.getContentType(String partitioning, int offset)
           
 ITypedRegion AbstractDocument.getPartition(String partitioning, int offset)
           
protected  boolean TextViewer.updateVisibleDocument(IDocument visibleDocument, int visibleRegionOffset, int visibleRegionLength)
          Sets the given slave document to the specified range of its master document.
 void DocumentCommand.addCommand(int offset, int length, String text, boolean shiftsCaret, IDocumentListener owner)
          Adds an additional replace command.
 void DocumentCommand.addCommand(int offset, int length, String text, IDocumentListener owner)
          Adds an additional replace command.
protected  int DefaultAutoIndentStrategy.findEndOfWhiteSpace(IDocument document, int offset, int end)
          Returns the first offset greater than offset and smaller than end whose character is not a space or tab character.
 

Uses of BadLocationException in org.eclipse.jface.text.rules
 

Methods in org.eclipse.jface.text.rules that throw BadLocationException
protected  int DefaultDamagerRepairer.endOfLineOf(int offset)
          Returns the end offset of the line that contains the specified offset or if the offset is inside a line delimiter, the end offset of the next line.
 

Uses of BadLocationException in org.eclipse.jface.text.source
 

Methods in org.eclipse.jface.text.source that throw BadLocationException
protected  boolean ProjectionSourceViewer.updateVisibleDocument(IDocument visibleDocument, int visibleRegionOffset, int visibleRegionLength)
           
 void ILineDiffer.revertLine(int line)
          Reverts a single changed line to its original state, not touching any lines that are deleted at its borders.
 void ILineDiffer.revertBlock(int line)
          Reverts a block of modified / added lines to their original state, including any deleted lines inside the block or at its borders.
 void ILineDiffer.revertSelection(int line, int nLines)
          Reverts a range of lines to their original state, including any deleted lines inside the block or at its borders.
 int ILineDiffer.restoreAfterLine(int line)
          Restores the deleted lines after line.
protected  void AnnotationModel.replaceAnnotations(Annotation[] annotationsToRemove, Map annotationsToAdd, boolean fireModelChanged)
          Replaces the given annotations in this model and if advised fires a model change event.
protected  void AnnotationModel.addAnnotation(Annotation annotation, Position position, boolean fireModelChanged)
          Adds the given annotation to this model.
protected  void AnnotationModel.addPosition(IDocument document, Position position)
          Adds the given position to the default position category of the given document.
 

Uses of BadLocationException in org.eclipse.text.edits
 

Methods in org.eclipse.text.edits that throw BadLocationException
 UndoEdit TextEditProcessor.performEdits()
          Executes the text edits.
 UndoEdit TextEdit.apply(IDocument document, int style)
          Applies the edit tree rooted by this edit to the given document.
 UndoEdit TextEdit.apply(IDocument document)
          Applies the edit tree rooted by this edit to the given document.
 


Eclipse Platform
Pre-release 3.0

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.